from selenium import webdriver
driver=webdriver.Firefox()
class BaseClass:
    def open_browser(self,url):
        driver.get(url)
    def close_browser(self):
        driver.quit()
    def locator(self,path,type):
        myelement=driver.find_element(path,type)
        return myelement